package com.sea.supply.service.impl;


import com.sea.supply.entity.QualityProduce;
import com.sea.supply.mapper.QualityProduceMapper;
import com.sea.supply.service.QualityProduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author 陈鸿飞
 */
@Service
public class QualityProduceServiceImpl implements QualityProduceService {

    @Autowired
    private QualityProduceMapper qualityProduceMapper;

    @Override
    public int save(QualityProduce qualityProduce) {
        return qualityProduceMapper.insert(qualityProduce);
    }

    @Override
    public List<QualityProduce> findByCnd(QualityProduce qualityProduce) {
        return qualityProduceMapper.findByCnd(qualityProduce);
    }

    @Override
    public Integer usave(QualityProduce qualityProduce) {
        return qualityProduceMapper.update(qualityProduce);
    }
}
